﻿using System;
using System.Runtime.InteropServices;

namespace SilverlightViewport.Common.Interop
{
    [ComImport, Guid("00000113-0000-0000-C000-000000000046"), 
    InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    public interface IOleInPlaceObject : IOleWindow
    {
        [PreserveSig]
        new int GetWindow(out IntPtr phwnd);
        [PreserveSig]
        new int ContextSensitiveHelp([In] int fEnterMode);
        [PreserveSig]
        int InPlaceDeactivate();
        [PreserveSig]
        int UIDeactivate();
        [PreserveSig]
        int SetObjectRects([In, MarshalAs(UnmanagedType.Struct)] ref  RECT lprcPosRect, 
                           [In, MarshalAs(UnmanagedType.Struct)] ref RECT lprcClipRect);
        [PreserveSig]
        int ReactivateAndUndo();
    }
}
